<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
 <title>Metronic | User Login 1</title>
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta content="width=device-width, initial-scale=1" name="viewport" />
 <meta content="" name="description" />
 <meta content="" name="author" />
 <!-- BEGIN GLOBAL MANDATORY STYLES -->
 <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/plugins/bootstrap/css/bootstrap.css" type="text/css" >
 <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/plugins/font-awesome/css/font-awesome.css" type="text/css" > 
 <link    href="${pageContext.request.contextPath}/assets/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
 <link   href="${pageContext.request.contextPath}/assets/css/plugins.min.css" rel="stylesheet" type="text/css" />
 <link   href="${pageContext.request.contextPath}/assets/css/portal.login.min.css" rel="stylesheet" type="text/css" />
 <link rel="shortcut icon" href="favicon.ico" /> 
 
 <style type="text/css">
   .logo{
      color:#fff;
      font-size:16px;
      font-weight:600;
   }
   
	.login .content .forget-form, .login .content .register-form{
	   display:block;
	}   
 </style>
 
 
</head>
    <body class=" login">
        <!-- BEGIN LOGO -->
        <div class="logo">
           		蚌埠医学院第一附属医院
        </div>
        <!-- END LOGO -->
        <!-- BEGIN LOGIN -->
        <div class="content">
            <!-- END LOGIN FORM -->
            <!-- BEGIN FORGOT PASSWORD FORM -->
                <h3 class="font-green">忘记密码?</h3>
                <p> 请输入手机号码获得密码</p>
                <div class="form-group">
                    <input class="form-control placeholder-no-fix" id="phome-number" type="text" autocomplete="off" placeholder="手机号码" name="Phone-number" /> </div>
                <div class="form-actions">
                    <button type="button" id="back-btn" class="btn green btn-outline">返回</button>
                    <button type="submit" class="btn btn-success uppercase pull-right" id="get-password">提交</button>
                </div>
        </div>
        <div class="copyright"> 2017bengbu medical collage </div>

        <!--[if lt IE 9]>
<script src="../assets/global/plugins/respond.min.js"></script>
<script src="../assets/global/plugins/excanvas.min.js"></script> 
<![endif]-->
  <script src="${pageContext.request.contextPath}/assets/js/jquery-1.11.2.min.js" charset="utf-8" type="text/javascript"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/js/jquery.blockui.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/jquery-validation/js/jquery.validate.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/jquery-validation/js/additional-methods.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/select2/js/select2.full.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/js/app.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/js/portal.login.js"></script>
    <script type="text/javascript">
     var page={
    		 init:function(){
    			 this.initEvents();    			 
    		 },
    		 initEvents:function(){
    			 var that = this;  
    			 
    			 var params={};
    			 params.PHOME_NUMBER=$("#phome-number").val();
    			 
    			 $("#get-password").on("click",function(){
    	               $.post("${pageContext.request.contextPath}/Portal/portal/GPWD01.do?rnd=" + Math.random(),params, function (result) {                   
    	                   try {
    	                       //that.initPagenator(result.totalCount, that.currentPage);
    	                       //that.bindItemList(result.data);
    	                   } catch (e) {
    	                       //that.initPagenator(1, 0);
    	                   }
    	               })
    			 })
    			 
    			 
    			 //跳转到注册页面
    			 $("#back-btn").on("click",function(){
    				 window.history.go(-1);
    			 })
    			 return that;
    		 }
     }
     
     $(function(){    	 
    	 page.init();
     })
  </script>

</body>
</html>